{{ $pag := .Paginator }}
{{ $tps := $pag.TotalPages }}

{{ if gt $tps 1}}
    <nav class="bar bar-footer clearfix" data-stick-bottom>
        <div class="bar-inner">
        <ul class="pager pull-left">
            {{ if $pag.HasPrev }}
            <li class="prev disabled">
                <a href="javascript:;">
                    <i class="icon icon-angle-left"></i>
                    上一页
                </a>
            </li>
            {{ else }}
            <li class="prev">
                <a href="{{ $pag.NextPage.URL  }}">
                    <i class="icon icon-angle-left"></i>
                    上一页
                </a>
            </li>
            {{ end }}
            {{ if $pag.HasNext }}
            <li class="next disabled">
                <a href="javascript:;">
                    下一页
                    <i class="icon icon-angle-right"></i>                    
                </a>
            </li>
            {{ else }}
            <li class="next">
                <a href="{{ $pag.PrevPage.URL }}">
                        下一页
                    <i class="icon icon-angle-right"></i>
                </a>
            </li>
            {{ end }}
        </ul>
        <div class="total-article bar-right">Page {{ $pag.PageNumber }} Of {{ $tps }}</div>
        </div>
    </nav>
{{ end }}